﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using DAL;
using DTO;

namespace BUS
{
    public class BizProduct
    {
        //Get All information in table Product
        public static List<ProductDto> mp_SanPham_GetAll()
        {
            return DaProduct.GetAllProduct();
        }
        //Get One product by Id in table mp_SanPham
        public static List<ProductDto> mp_SanPham_GetOneProductByID(ProductDto pDto)
        {
            return DaProduct.GetOneProductByID(pDto);
        }

        //Insert or Update table Product...........
        public static string mp_SanPham_InsertUpdate(ProductDto pDto)
        {
            return DaProduct.mp_Product_InsertUp(pDto);
        }
        //Delete one product in table mp_SanPham
        public static void mp_SanPham_Delete(ProductDto pDto, bool isPermanent)
        {
            DaProduct.mp_SanPham_Del(pDto, isPermanent);
        }
    }
}